package com.rd.student.dashuju.sunwenzhuo.Test1.inheritedflower;

public class Flower {
   private String color;
   private String price;


   public void setColor(String color){
      this.color=color;
   }


   public void setPrice(String price) {
      this.price = price;
   }

   public String getPrice() {
      return price;
   }

   public String getColor() {
      return color;
   }

   public Flower(){

   }
   public Flower(String color,String price){
      getColor();
      getPrice();

    }
    public void showInfo(){
       System.out.println("花的颜色是"+color+",价格是"+price);
    }
}
